# Contributor: Erwan Rouchet <lucidiot@brainshit.fr>
# Maintainer: Erwan Rouchet <lucidiot@brainshit.fr>
pkgname=liferea
pkgver=1.15.4
pkgrel=0
pkgdesc="Desktop news aggregator for online news feeds and weblogs"
arch="all !riscv64" # webkit2gtk, libpeas
url="https://lzone.de/liferea"
license="GPL-2.0-or-later"
depends="py3-gobject3 libpeas-python3"
makedepends="
	glib-dev
	intltool
	gobject-introspection-dev
	libxml2-dev
	libxslt-dev
	sqlite-dev
	gtk+3.0-dev
	pango-dev
	webkit2gtk-4.1-dev
	json-glib-dev
	gsettings-desktop-schemas-dev
	libpeas-dev
	libsoup3-dev
	"
source="https://github.com/lwindolf/liferea/releases/download/v$pkgver/liferea-$pkgver.tar.bz2"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-schemas-compile
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

doc() {
	default_doc
	mkdir -p "$subpkgdir/usr/share/liferea"
	mv "$pkgdir/usr/share/liferea/doc" "$subpkgdir/usr/share/liferea/"
}

sha512sums="
25a2f3af4515ff718931b874a23c472f9009aa751314f38a67aa3d77f43b76378b7f79aa302192d41f044f9d079b40ea4cb8fef248721a72f1b6007c5f4273a2  liferea-1.15.4.tar.bz2
"
